<?php

declare(strict_types=1);

namespace Modules\Notice\Models;

use Catch\Traits\DB\BaseOperate;
use Catch\Traits\DB\ScopeTrait;
use Catch\Traits\DB\Trans;
use Illuminate\Database\Eloquent\Model;

/**
 * @property $id
 * @property $title
 * @property $content
 * @property $image
 * @property $created_at
 * @property $updated_at
*/
class Notice extends Model
{
    use BaseOperate, Trans, ScopeTrait;

    const CREATED_AT = 'created_at'; // 创建时间
    const UPDATED_AT = 'updated_at'; // 更新时间

    public $timestamps = true;
    public $dateFormat = "U";

    protected $table = 'notice';

    protected $fillable = [ 'id', 'title', 'content', 'image', 'created_at', 'updated_at' ];

    /**
     * @var array
     */
    public array $searchable = [

    ];


}
